//package com.pug.authentication.config.code;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.core.annotation.Order;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
//import org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter;
//
///**
// * @author RenGaoshuai
// * @date 2023/7/10 9:34
// * @description 资源服务配置----注意：资源服务器不在这里配置（）
// * 1，需要继承ResourceServerConfigurerAdapter
// */
//@Configuration
//@EnableResourceServer
//@Order(6)
//public class OAuth2ResourceServerConfig extends ResourceServerConfigurerAdapter {
//
//
//    @Override
//    public void configure(HttpSecurity http) throws Exception {
//        http.authorizeRequests()
//                //放行，不校验
//                .antMatchers("/oauth/**").permitAll()
//                .anyRequest()
//                .authenticated()
//                .and()
//                .requestMatchers()
//                //配置api访问控制，必须认证过后才可以访问
//                .antMatchers("/api/**");
//    }
//}
